var mongoose = require("mongoose");
var db = mongoose.createConnection("localhost","look");

db.on("error",function(){
  console.error.bind(console,"连接错误");
});
db.once("open",function(){
  console.log("连接数据库成功");
});

module.exports = db;
